# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-wstools
pkgver=0.4.10
pkgrel=6
url="https://github.com/pycontribs/wstools"
pkgdesc="WSDL parsing services package for Web Services for Python"
arch="noarch"
license="BSD-3-Clause AND BSD-3-Clause-LBNL AND ZPL-2.0"
depends="py3-six"
makedepends="py3-pbr py3-setuptools py3-pytest-runner"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pycontribs/wstools/archive/$pkgver.tar.gz
	python3.10-support.patch
	python3.12-support.patch
	"
builddir="$srcdir/wstools-$pkgver"

build() {
	export PBR_VERSION=$pkgver
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
1acd8e62d71c7d330f1e953a0da1956291c5dfb25ff9b8b8799c83feaa4230e384955735b131bab7b430b92ae6c18498927d416d2d1e11fb5c5dad93417c671a  py3-wstools-0.4.10.tar.gz
9c19ae50724249dacb91206301417238c04df3afd841fe5b3ef2280dfd57ce635e01690e6d28c88798aebc6b7b2bea7a83eeb1f45eeb07bb94ddcd00d3c6ed94  python3.10-support.patch
64e25d87337d27ef36d9d97702001f2fb87e0215b93b8a03653dbed2331b10b44963eeddbe508813d9fbd0ba1727b68a0fe3d181855d548014df4f8f5cbe53c2  python3.12-support.patch
"
